import { Routes, RouterModule } from '@angular/router';


import { HomeComponent } from './component/home/home.component';
import { ListComponent } from './component/list/list.component';

const routes: Routes = [
  { path: '', redirectTo: 'home', pathMatch: 'full' },
  {
    path: 'list',
    component: ListComponent
  },
   {
    path: 'home',
    component: HomeComponent
  }

];

export const routing = [
  RouterModule.forRoot(routes, { useHash: true })
];
